package com.cloud.commana.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cloud.util.base.BaseAction;

/**
 * 共通Action
 * @author gaof
 * @date 2017年2月6日
 */
@Controller
@RequestMapping("common")
public class CommonAction extends BaseAction{

	/**
	 * 选择图片弹出框
	 * @param newsId
	 * @return
	 */
	@RequestMapping(value="selectImage.dop")
	public String selectImage(ModelMap modelMap, String imageCompress) {
		modelMap.put("imageCompress", imageCompress);
		return getViewsModelPathSys("common/imageSelect");
	}
	/**
	 * 用于用户签字
	 * @param modelMap
	 * @param imageCompress
	 * @return
	 */
	@RequestMapping(value="signImage.dop")
	public String signImage(ModelMap modelMap, String imageCompress) {
		modelMap.put("imageCompress", imageCompress);
		return getViewsModelPathSys("jsSign/signImage");
	}
	
}
